package com.bit.deom.service;

import com.bit.deom.mapper.MessageInfoMapper;
import com.bit.deom.model.MessageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageInfoService {

    @Autowired
    private MessageInfoMapper messageInfoMapper;

    public List<MessageInfo> queryAll() {
        return messageInfoMapper.queryAll();
    }

    public Integer addMessage(MessageInfo messageInfo) {
        return messageInfoMapper.addMessage(messageInfo);
    }
}
